import {customeStruct} from '../utils';
const itf = customeStruct.interface;

const defaultProps = {
    id: 'string',
    code: 'string',
    description: 'string? | null',
    type: 'number',
    kind: 'number',
    status: 'number',
    remark: 'string? | null',
};

export const List = itf({
    payload: itf({
        content: [itf(Object.assign({
            options: ['string'],
            rowVersion: 'string? | null'
        }, defaultProps))],
        totalElements: 'number',
    })
});


